<template>
  <div id="app">
	<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
		<el-menu-item index="1" @click="wq=find">查找</el-menu-item>
		<el-menu-item index="1" @click="wq=add">操作</el-menu-item>
	</el-menu>
  </div>
	<keep-alive>
		<component :is="wq"
		:is="wq"
		:persons="persons" 
		:obj="person"
		@getdate="addperpson" 
		@getindex="toshow"
		@finish="person=null"
		>
		</component>
	</keep-alive>
</template>

<script>
import Test from "./components/Test.vue"
import Test1 from "./components/Test1.vue"
export default {
  name: 'app',
  components: {
		Test,
		Test1
  }
}
</script>

<style>

</style>
